<div bindonce>
	<div class="panel panel-default" ng-show="!isSee">
		<button class="btn btx-xs btn-primary mr5 mt5" ng-repeat="item in search.canSelectList" ng-click="search.selectSerchField(item)">{{item.fieldName + " " + item.fieldDesc}}</button>
	</div>
	<table class="table table-striped table-bordered table-hover text-center table-layout-fixed">
		<thead>
			<tr>
				<th class="th-nowap">序号</th>
				<th class="pointer-th th-nowap">表名</th>
				<th class="pointer-th th-nowap">字段名称</th>
				<th class="pointer-th th-nowap">字段备注</th>
				<th class="pointer-th th-nowap">条件类型</th>
				<th class="pointer-th th-nowap">控件类型</th>
				<th class="pointer-th th-nowap">显示类型</th>
				<th class="pointer-th th-nowap">格式化数据</th>
				<th class="pointer-th th-nowap">是否必传</th>
				<th class="pointer-th th-nowap">是否默认</th>
				<th class="pointer-th th-nowap">默认值类型</th>
				<th class="pointer-th th-nowap">默认值格式</th>
				<!-- <th class="pointer-th th-nowap">占比</th> -->
				<th class="pointer-th th-nowap">变量类型</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<tr ng-repeat="item in search.selectSearchList | orderBy:'sn'">
				<td>{{$index+1}}</td>
				<td class="th-nowap">
					<!-- 表名-->
					{{item.tableName}}
					<span ng-show="item.tableAlias">[{{item.tableAlias}}]</span>
				</td>
				<td class="th-nowap">
					<!-- 字段名称-->
					{{item.name}}
				</td>
				<td class="th-nowap">
					<!-- 字段备注 -->
					<input class="form-control must" type="text" ng-model="item.desc" ab-validate="{required:true}" ng-disabled="isSee" />
				</td>
				<td class="th-nowap">
					<!-- 条件类型 -->
					<select class="form-control must" ng-model="item.cntype" ng-options="k as v for (k,v) in service.cnTypeMap" ab-parse-data ab-validate="{required:true}" ng-disabled="isSee">
						<option value="">请选择</option>
					</select>
				</td>
				<td class="th-nowap">
					<!-- 控件类型 -->
					<select class="form-control must" ng-model="item.ctltype" ng-options="k as v for (k,v) in service.controlTypeMap" ab-parse-data ab-validate="{required:true}" ng-disabled="isSee">
						<option value="">请选择</option>
					</select>
				</td>
				<td class="th-nowap">
					<!-- 显示类型 -->
					<select class="form-control must" ng-model="item.showType" ng-options="k as v for (k,v) in service.showTypeMap" ab-parse-data ab-validate="{required:true}" ng-disabled="isSee">
						<option value="">请选择</option>
					</select>
				</td>
				<td class="th-nowap">
					<!-- 格式化数据 -->
					<input class="form-control must fl" type="text" ng-model="item.json" ng-disabled="isSee" />
				</td>
				<td class="th-nowap">
					<!-- 是否必传 -->
					<span ab-boolean="1/0" class="checkbox" text="是/否" ng-model="item.isMust" ab-validate="{required:true}" ng-disabled="isSee"></span>
				</td>
				<td class="th-nowap">
					<!-- 是否默认 -->
					<span ab-boolean="1/0" class="checkbox" text="是/否" ng-model="item.init" ab-validate="{required:true}" ng-disabled="isSee"></span>
				</td>
				<td class="th-nowap">
					<!-- 默认值类型 -->
					<select class="form-control must" ng-model="item.dfDataType" ng-options="k as v for (k,v) in service.initTypeMap" ab-parse-data ng-disabled="isSee">
						<option value="">请选择</option>
					</select>
				</td>
				<td class="th-nowap">
					<!-- 默认值-->
					<input class="form-control fl" type="text" ng-model="item.val" ng-if="item.initType!=2" ng-disabled="isSee" />
					<select class="form-control" ng-model="item.val" ng-options="k as v for (k,v) in service.dateTypeMap" ab-parse-data ab-validate="{required:true}" ng-if="item.initType==2" ng-disabled="isSee">
						<option value="">请选择</option>
					</select>
				</td>
				<td class="th-nowap" ng-if="false">
					<!-- 占比 该已经没有用了 -->
					<select class="form-control" ng-model="item.colMuti" ng-options="k as v for (k,v) in service.colMutiMap" ab-parse-data ng-disabled="isSee">
						<option value="">请选择</option>
					</select>
				</td>
				<td class="th-nowap">
					<!-- 变量类型 -->
					<select class="form-control" ng-model="item.paramType" ng-options="k as v for (k,v) in service.paramTypeMap" ab-parse-data ng-disabled="isSee">
						<option value="">请选择</option>
					</select>
				</td>
				<td class="th-nowap">
					<div ab-button-tools="iDontEvenUseThis" parent="thisScope" list="search.selectSearchList" list-key="'search.selectSearchList'" index="{{$index}}" copy="false" no-sort="false" sort-key="'sn'" no-confirm="true" ng-if="!isSee"></div>
				</td>
			</tr>
		</tbody>
	</table>
</div>